//
//  UIStoryboard+LoadViewController.h
//  WBUQ
//
//  Created by yangaichun on 15/11/16.
//  Copyright © 2015年 com.weiba66. All rights reserved.

//  从Storyboard加载ViewController

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface UIStoryboard(LoadViewController)

/*!
 *  @brief  从mainboundle mainStoryboard中加载ViewController
 *
 *  @param indentifer viewController标识
 *
 *  @return ViewController or nil
 */
+ (UIViewController *)ViewControllerFromMainStoryboardWihtIndentifier:(NSString *)indentifer;

/*!
 *  @brief  从mainboundle指定storyboard加载ViewController
 *
 *  @param name       storyboard名称
 *  @param indentifer viewController标识
 *
 *  @return ViewController or nil
 */
+ (UIViewController *)ViewControllerFromStoryboard:(NSString *)name MainBundleWihtIndentifier:(NSString *)indentifer;


/*!
 *  @brief  从指定boundle指定storyboard加载ViewController
 *
 *  @param name       storyboard名称
 *  @param bundle     bundle名称
 *  @param indentifer viewController标识
 *
 *  @return ViewController or nil
 */
+ (UIViewController *)ViewControllerFromStoryboard:(NSString *)name Bundle:(NSString *)bundle Indentifier:(NSString *)indentifer;

@end
